<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>14.数学</title>
</head>
<body>

    <script>
        /**
         * 指定一个函数  求数组中的最大值和最小值
         *   借用函数
         */
        console.dir(Math);

        console.log(Math.random());
        console.log(Math.ceil(3.14));
        console.log(Math.floor(3.54));
        console.log(Math.round(3.4));  // 3
        console.log(Math.round(3.5));  // 4
        console.log(Math.max(1,2,3,4,5));
    </script>
    
</body>
</html>